//===============================================================================
// Microsoft patterns & practices Enterprise Library Contribution
// Query Application Block
//===============================================================================

using System;
using System.Diagnostics.CodeAnalysis;
using Microsoft.Practices.EnterpriseLibrary.Common.Configuration;
using Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder;

namespace EntLibContrib.Query.Configuration
{
	/// <summary>
	/// Configuration data defining QueryDataBase. This configuration section defines the name and type
	/// of the IQuery class
	/// </summary>
	[SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", MessageId = "DataBase")]
	[Assembler(typeof(TypeInstantiationAssembler<IQuery, QueryDataBase>))]
	public class QueryDataBase : NameTypeConfigurationElement
	{
		#region Construction
		/// <summary>
		/// Initializes a new instance of the <see cref="QueryDataBase"/> class.
		/// </summary>
		public QueryDataBase ()
		{
		}

		/// <summary>
		/// Initialize a new instance of the <see cref="QueryDataBase"/> class with a name and the type of <see cref="IQuery"/>.
		/// </summary>
		/// <param name="name">The name of the configured <see cref="IQuery"/>.</param>
		/// <param name="type">The type of <see cref="IQuery"/>.</param>
		public QueryDataBase(string name, Type type)
			: base(name, type)
		{
		}
		#endregion
	}
}